var category = {
		count:function(type,tree_id){
//			alert(type+'---'+tree_id);
			var category ={};
			category.category_id = '';
			category.category_name = '';
			category.category_id_array = new Array();
			category.category_name_array =  new Array();;
			//遍历tree
			$('.dTreeNode > a').each(function(){
				category.category_id = $(this).attr('categoryId');
				category.category_name = $(this).html();
				category.category_id_array.push(category.category_id);
				category.category_name_array.push(category.category_name);
			});
			//alert(category.category_id_array);
			//alert(category.category_name_array);
			$.ajax({
				url 	:'../../controls/nncms_controls_ajax_category_count.php',
				data	:'type='+type+'&tree_id='+tree_id+'&category_list='+category.category_id_array+'&category_name='+category.category_name_array,
				type	:'POST',
				global	:false,
				success	:function(result,status){
					result = eval('('+result+')');
					if(result.status){
						$.each(result.data,function(key,val){
							$('[categoryId =\''+key+'\']').html(val);
						})
					}else{
						alert(result.reason);
					}
				},
				
			});
		},
		select:function(){
			alert('select');
		}
}